package com.example.demo_mvp.view;

import android.os.Bundle;
import android.widget.Toast;

import com.example.demo_mvp.R;
import com.example.demo_mvp.base.presenter.BasePresenter;
import com.example.demo_mvp.base.view.BaseActivity;
import com.example.demo_mvp.contract.VideoContract;
import com.example.demo_mvp.entity.VideoEntity;
import com.example.demo_mvp.model.VideoModel;
import com.example.demo_mvp.presenter.VideoPresenter;

import java.util.List;

/**
 * @author yaotianxue
 * @description
 * @date 2025/1/9
 */
public class VideoActivity extends BaseActivity<VideoContract.IVideoView, VideoPresenter<VideoContract.IVideoView>> implements VideoContract.IVideoView {

    @Override
    protected void initData() {
        mPresenter.getVideoData();
    }

    @Override
    protected void initView(Bundle savedInstanceState) {

    }

    @Override
    protected int bindLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void showVideoData(List<VideoEntity> data) {
        Toast.makeText(this, "获取数据成功"+data.size(), Toast.LENGTH_SHORT).show();
    }
}
